package com.yoda.mall.admin.service;

import com.yoda.mall.api.MemberApi;
import com.yoda.mall.model.entity.ums.MemberLevel;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemberService {
    @DubboReference
    private MemberApi memberApi;

    public List<MemberLevel> list(Integer defaultStatus) {
        List<MemberLevel> list = memberApi.listWithDefaultStatus(defaultStatus);
        return list;
    }
}
